package ${model.packageName}.domain;

import java.util.ArrayList;
import java.util.List;

import com.dhc.framework.auth.user.domain.AuthUser;
import com.dhc.framework.auth.usercolsetting.model.UserColSetting;
import com.dhc.framework.base.web.form.TableTitle;

/**
 * ${model.desc} 页面表头定义
 */
public class ${model.initUpperName}TableData {
	
    public static final String menuid = "${model.initUpperName}TableData";
	
	<#list model.fields as field>
	/**
	 * ${field.desc}
	 */
	private String ${field.name};
	</#list>
	
	<#list model.fields as field>
	public String get${field.name?cap_first}() {
		return ${field.name};
	}
	public void set${field.name?cap_first}(String ${field.name}) {
		this.${field.name} = ${field.name};
	}
	</#list>
	
	public static List<TableTitle> detailSettingLst(AuthUser emp, UserColSetting usercol) {

		List<TableTitle> lst = new ArrayList<TableTitle>();
		TableTitle tmp = null;
		
		<#list model.fields as field>
		tmp = new TableTitle();
		tmp.setLabel("${field.desc}");
		tmp.setName("${field.name}");
		tmp.setSortable(true); //默认可排序
		tmp.setSorttype("number");
		tmp.setAlign("left");
		tmp.setHidden(false); //true 列隐藏，并且在自定义列配置中可配置
		tmp.setHidedlg(false); //true 列隐藏，完全隐藏，并且在自定义列配置中不可配置
		tmp.setTitle(true);
		tmp.setResizable(true);
		lst.add(tmp);
		
		</#list>
		return lst;
	}
}
